<?php

namespace app\crm\controller;

use app\crm\model\Complaint as ComplaintModel;


class Complaint extends BaseController
{
    public function getList()
    {
        $list = ComplaintModel::order(['status'=>'asc','add_time'=>'desc'])->paginate(10);
        $page = $list->render();
        $this->assign('list',$list);
        $this->assign('page',$page);
        return $this->fetch();
    }
}